package vnc.analyzer;
import java.awt.Color;

import jpcap.packet.*;

public class SSHAnalyzer extends JDPacketAnalyzer
{
	public SSHAnalyzer(){
		layer=APPLICATION_LAYER;
	}
	
	public boolean isAnalyzable(Packet p){
		if(p instanceof TCPPacket &&
		   (((TCPPacket)p).src_port==22 || ((TCPPacket)p).dst_port==22))
			return true;
		else return false;
	}
	
	public Color getProtocolColor(){	
		return new Color(0, 0, 128);
	}
	public int getHeaderLength(){
		return 0; //byte
	}
	public String getProtocoloColorHtmlFontStyle(){
		return " style=\"BACKGROUND-COLOR: rgb(0,0,128)\"";
	}
	
	public String getProtocolName(){
		return "SSH";
	}
	
	public String[] getValueNames(){return null;}
	
	public void analyze(Packet p){}
	
	public Object getValue(String s){ return null; }
	public Object getValueAt(int i){ return null; }
	public Object[] getValues(){ return null; }
}
